package com.wpre.lotterysystem.service.dto;

import com.wpre.lotterysystem.service.enums.ActivityStatusEnum;
import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-12-22
 * Time: 13:55
 */
@Data
public class ActivityDTO {
    //活动id
    private Long activityId;
    //活动名称
    private String activityName;
    //活动描述
    private String description;
    //活动状态
    private ActivityStatusEnum status;


    //判断当前活动是否有效
    public Boolean valid() {
        return status.equals(ActivityStatusEnum.RUNNING);
    }

}
